package com.bowen.chapter01;

public class Engineer extends Employee {

    /**
     * 获得年度总消耗
     *
     * @return
     */
    public float getTotalAnnualCost() {
        return this.getMonthlyCost() * 12;
    }




    /**
     * 获得月度消耗值
     *
     * @return
     */
    public float getMonthlyCost() {
        return 10.0f;
    }
}
